/*
 * @Author: your name
 * @Date: 2020-06-01 15:28:52
 * @LastEditTime: 2020-06-01 15:31:18
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \codeSnippet\nodejsAPI练习\readdirSync.js
 */

const fs = require("fs");
// readdirSync : 同步读取路径下的 文件名  返回一个数组  [ 'index.html', 'test.html' ]
const files = fs.readdirSync("../canvas");
console.log(files);
